import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
import Container from '../components/container/container.vue'
const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: Container,
    children: [
      {
        path: '/',
        component: Home
      },
      {
        path: '/chooseIcon',
        component: () => import('../views/chooseIcon/chooseIcon.vue')
      },
      {
        path: '/chooseArea',
        component: () => import('../views/chooseArea/chooseArea.vue')
      },
      {
        path: '/table',
        component: () => import('../views/table/table.vue')
      },
      {
        path: '/header',
        component: () => import('../views/header/header.vue')
      },
    ]
  }
]

const router = createRouter({
  routes,
  history: createWebHistory()
})

export default router